home *** CD-ROM | disk | FTP | other *** search
- Path: rzstud1.rz.uni-karlsruhe.de!uhay
- From: uhay@rzstud1.rz.uni-karlsruhe.de (David Luebbren)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: Stack overflow in Emacs/SKsh?
- Date: 29 Mar 1996 01:45:16 GMT
- Organization: University of Karlsruhe, Germany
- Message-ID: <4jffbc$f5t@nz12.rz.uni-karlsruhe.de>
- References: <4iigkn$igr@tkhut.sojourn.com>
- NNTP-Posting-Host: rzstud1.rz.uni-karlsruhe.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- NNTP-Posting-User: uhay
- X-Newsreader: TIN [version 1.2 PL2]
-
- Matt Harrell (mharrell@sojourn1.sojourn.com) wrote:
- : I recently decided to give the SKsh (Steven Koren's AmigaShell
- : replacement) a try now that I have enough RAM that I don't need to be
- : concerned with the amount of RAM my shell requires. Everything has
- : gone pretty well so far, except for GNU Emacs (version 18.59). I
- : can't get it to run from an SKsh. If I use the "emacs" startup
- : script, it immediately complains of a stack overflow (and doesn't load
- : emacs), and if I use the "temacs" executable, it runs emacs, but when
- : I use any commands (like ^x^s to save a document), it then dies with a
- : stack overflow error. My stack size is normally 100,000, and I even
- : upped it to as much as 1,000,000, with no effect. I have no
- : difficulties with emacs from the standard AmigaShell. Anyone have any
- : ideas? Thanks.
-
- I've defined the following function in my '.skshrc' startup script which
- works fine. Give it a try, just invoke emacs with 'em'.
-
- <------- CUT ----------------------------->
-
- function em {
- local stck;
-
- #if Emacs is already running, (deiconify it) pull it up front and activate.
-
- FindPort EMACS1 >nil:
- if [ $LASTRC -eq 0 ]
- then
- rx "ADDRESS EMACS1 \'(if (car (amiga-get-window-geometry)) (amiga-iconify) (amiga-window-to-front)(amiga-activate-window))\'"
- return 0
- fi
-
- assign fifo: exists >nil:
- if [ $LASTRC -ne 0 ]
- then
- if [ -x l:fifo-handler ]
- then
- echo "Starting fifo-handler"
- l:fifo-handler&
- else
- echo "Cannot start l:fifo-handler."
- echo "External processes will not work."
- fi
- fi
-
- stck=$BG_STACK
- BG_STACK=40000
- gnuemacs:bin/emacs $* &
- BG_STACK=$stck
- }
-
- <---------------- CUT ---------------->
-